package com.jues.huichain.login.entity;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

/**
 * Created by Android Studio .
 * Project：hlian com.jues.huichain.login.entity
 * Date：2019/8/7 15:17
 * Introduce：hlian
 */
public class RegisterRequest implements Parcelable {
    @SerializedName("real_name")
    private String realName;
    @SerializedName("mobile")
    private String phone;
    @SerializedName("captcha")
    private String code;
    @SerializedName("password")
    private String pass;
    @SerializedName("confirmpassword")
    private String confirmPass;
    @SerializedName("industry_id")
    private String position;//职务
    @SerializedName("department_id")
    private String department;//部门
    @SerializedName("duties_id")
    private String business;//行业
    @SerializedName("server")
    private String serviceProject;//服务项目
    @SerializedName("abstract")
    private String introduction;//简介
    private String parent_mobile;

    public RegisterRequest() {
    }

    protected RegisterRequest(Parcel in) {
        realName = in.readString();
        phone = in.readString();
        code = in.readString();
        pass = in.readString();
        confirmPass = in.readString();
        position = in.readString();
        department = in.readString();
        business = in.readString();
        serviceProject = in.readString();
        introduction = in.readString();
        parent_mobile = in.readString();
    }

    public static final Creator<RegisterRequest> CREATOR = new Creator<RegisterRequest>() {
        @Override
        public RegisterRequest createFromParcel(Parcel in) {
            return new RegisterRequest(in);
        }

        @Override
        public RegisterRequest[] newArray(int size) {
            return new RegisterRequest[size];
        }
    };

    /**
     * Describe the kinds of special objects contained in this Parcelable
     * instance's marshaled representation. For example, if the object will
     * include a file descriptor in the output of {@link #writeToParcel(Parcel, int)},
     * the return value of this method must include the
     * {@link #CONTENTS_FILE_DESCRIPTOR} bit.
     *
     * @return a bitmask indicating the set of special object types marshaled
     * by this Parcelable object instance.
     */
    @Override
    public int describeContents() {
        return 0;
    }

    /**
     * Flatten this object in to a Parcel.
     *
     * @param dest  The Parcel in which the object should be written.
     * @param flags Additional flags about how the object should be written.
     *              May be 0 or {@link #PARCELABLE_WRITE_RETURN_VALUE}.
     */
    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(realName);
        dest.writeString(phone);
        dest.writeString(code);
        dest.writeString(pass);
        dest.writeString(confirmPass);
        dest.writeString(position);
        dest.writeString(department);
        dest.writeString(business);
        dest.writeString(serviceProject);
        dest.writeString(introduction);
        dest.writeString(parent_mobile);
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String pRealName) {
        realName = pRealName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String pPhone) {
        phone = pPhone;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String pCode) {
        code = pCode;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pPass) {
        pass = pPass;
    }

    public String getConfirmPass() {
        return confirmPass;
    }

    public void setConfirmPass(String pConfirmPass) {
        confirmPass = pConfirmPass;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String pPosition) {
        position = pPosition;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String pDepartment) {
        department = pDepartment;
    }

    public String getBusiness() {
        return business;
    }

    public void setBusiness(String pBusiness) {
        business = pBusiness;
    }

    public String getServiceProject() {
        return serviceProject;
    }

    public void setServiceProject(String pServiceProject) {
        serviceProject = pServiceProject;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String pIntroduction) {
        introduction = pIntroduction;
    }

    public String getParent_mobile() {
        return parent_mobile;
    }

    public void setParent_mobile(String pParent_mobile) {
        parent_mobile = pParent_mobile;
    }
}
